package com.ssm.zhihu_ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import java.util.Date;
import java.util.List;

@Data
public class QuestionAnswerList {
    private Integer id;//问题id

    private String title;//问题标题

    private int uid;// 用户id

    private String content_question;//问题内容

    @CreatedDate
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date question_time;//提问时间

    private int skim_num;//阅读数量

    private int comment_num;//评论数量

    private String img;//图片路径

    private int state;//图片状态

    private List<Answer> Answers;//回答

    private String  nick_name; //昵称

    private String  introduce; //介绍

    private String name;//分类名字
}
